package com.hand.pp.domain;/**
 * @author Estelle@앙수청
 * @date 2019/7/16 14:19
 */


import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 *  @author Estelle@앙수청
 *  @date 2019/7/16 14:19
 */
@Table(name = "user")
public class User {

    @Id
    private Integer id;

    private String name;

    private Integer age;

    private String sex;

    @Transient
    private List<Role> list;

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }

    public Integer getAge() {
        return age;
    }

    public Integer getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", list=" + list +
                '}';
    }
}

